import service from "@/request/index.js";

/**
 * 获得歌单详情页
 * @param id 歌单的id
 */
export function getItem(id) {
    return service({
        url: `/playlist/detail?id=${id}`,
        method: "get",
    })
}

export function getItemList(id) {
    return service({
        url: `/playlist/track/all?id=${id}&limit=10&offset=0`,
        method: "get",
    })
}
